package com.ssm.service.impl;

import com.ssm.dao.TeacherDao;
import com.ssm.pojo.Teacher;
import com.ssm.service.TeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TeacherServiceImpl implements TeacherService {

    @Resource
    private TeacherDao teacherMapper;


    public Teacher selectOne() {
        Teacher teacher = teacherMapper.queryById(1);
        return teacher;
    }

}
